//
//  L1Encryptor.m
//  Lesson401
//
//  Created by 徐盟 on 2023/3/18.
//

#import "XMEncryptor.h"

@implementation XMEncryptor


+(NSString *) base64Encode:(NSString *) message
{
    NSData * data = [message dataUsingEncoding:NSUTF8StringEncoding];
    NSString * output = [data base64EncodedStringWithOptions:0];
    return  output;
}
+(NSString *) base64Decode:(NSString *) message
{
    NSData * data = [[NSData alloc] initWithBase64EncodedString:message options:0];
    NSString * output = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
    return  output;
}


@end
